/*
 * @Author: hutong huareu980@163.com
 * @Date: 2023-06-09 17:00:08
 * @LastEditors: hutong huareu980@163.com
 * @LastEditTime: 2023-06-13 19:09:13
 * @FilePath: /smart-web-app/composables/useMyFetch.ts
 * @Description:
 */

export const useGetFetch = (url: string, params?: any) => {
  return useFetch(url, {
    baseURL: domain_url,
    method: "get",
    params,
  });
};
export const usePostFetch = (url: string, data?: any) => {
  return useFetch(url, {
    baseURL: domain_url,
    method: "post",
    body: data,
  });
};
